package com.nextStep.service;

import com.nextStep.entity.Users;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface UserService  {
    //增加一个用户
    String addUser(Users users,String emailVeri,HttpServletRequest request);

    //更新一个用户
    int updateUser(Users users);

    //查询一个用户
    Users queryUser(Map map);

    //对比一个用户(用户名密码）
    Integer equaleUser(Users user);

    //用户修改密码，发送验证码
    Boolean sendUpdatePasswordVeriEmail(String userEmail, HttpServletRequest request );

    //用户修改密码，验证用户邮箱
    Boolean updatePasswordVeriEnter(String veriEnter, HttpServletRequest request);

    //判定当前参数用户，对比用户表中，是否存在名称或者邮箱相同的情况
    Boolean selectUserExis(Users user);

    //修改密码
    Boolean updatePasswordEnter(String password,HttpServletRequest request);

    //注册用户，验证邮箱
    public  boolean sendRegisterEmailVeri( String email,HttpServletRequest request) throws Exception;

    public void test();
}
